﻿using System;
using System.ComponentModel.DataAnnotations;
using HengTong.Model.Db.Hr.Bill;
using WalkingTec.Mvvm.Core;

namespace HengTong.Model.Db.Hr;

/// <summary>
/// 用人需求池
/// </summary>
public class SysHrStaffPool : BasePoco
{
    [Display(Name = "用人需求子表ID", Description = "关联的用人需求子表ID", GroupName = "基本信息")]
    public Guid? StaffNeedEntryId { get; set; }

    [Display(Name = "用人需求子表", Description = "关联的用人需求子表", GroupName = "基本信息")]
    public SysHrStaffNeedRequestBillEntry StaffNeedEntry { get; set; }

    [Required]
    [Display(Name = "状态", Description = "单据状态", GroupName = "基本信息")]
    public HrStatus? HrStatus { get; set; }

    [Display(Name = "单据编号", Description = "用人需求池单据编号", GroupName = "基本信息")]
    [StringLength(50)]
    public string BillNo { get; set; }
    
    [Display(Name = "是否公布招聘", Description = "是否将招聘信息发布到外网", GroupName = "基本信息")]
    public bool? IsPublished { get; set; } = false;

    [Display(Name = "招聘发布单ID", Description = "关联的招聘发布单ID", GroupName = "基本信息")]
    public Guid? RecruitPublishRequestBillId { get; set; }

    [Display(Name = "招聘发布单", Description = "关联的招聘发布单", GroupName = "基本信息")]
    public SysHrRecruitPublishRequestBill RecruitPublishRequestBill { get; set; }
}